using UnityEngine;

namespace DG.Tweening
{
    // [Assembly-CSharp-firstpass.dll].DG.Tweening.DOTweenAnimation
    public class DOTweenAnimation : ABSAnimationComponent
    {
        
        #region DG.Tweening.DOTweenAnimation.AnimationType
        // [Assembly-CSharp-firstpass.dll].DG.Tweening.DOTweenAnimation.AnimationType
        public enum AnimationType
        {
            // Fields
            None = 0
            ,Move = 1
            ,LocalMove = 2
            ,Rotate = 3
            ,LocalRotate = 4
            ,Scale = 5
            ,Color = 6
            ,Fade = 7
            ,Text = 8
            ,PunchPosition = 9
            ,PunchRotation = 10
            ,PunchScale = 11
            ,ShakePosition = 12
            ,ShakeRotation = 13
            ,ShakeScale = 14
            ,CameraAspect = 15
            ,CameraBackgroundColor = 16
            ,CameraFieldOfView = 17
            ,CameraOrthoSize = 18
            ,CameraPixelRect = 19
            ,CameraRect = 20
            ,UIWidthHeight = 21
            
        
        }
        
        #endregion
        
        
        #region DG.Tweening.DOTweenAnimation.TargetType
        // [Assembly-CSharp-firstpass.dll].DG.Tweening.DOTweenAnimation.TargetType
        public enum TargetType
        {
            // Fields
            Unset = 0
            ,Camera = 1
            ,CanvasGroup = 2
            ,Image = 3
            ,Light = 4
            ,RectTransform = 5
            ,Renderer = 6
            ,SpriteRenderer = 7
            ,Rigidbody = 8
            ,Rigidbody2D = 9
            ,Text = 10
            ,Transform = 11
            ,tk2dBaseSprite = 12
            ,tk2dTextMesh = 13
            ,TextMeshPro = 14
            ,TextMeshProUGUI = 15
            
        
        }
        
        #endregion
        
        // Fields
        private static System.Action<DG.Tweening.DOTweenAnimation> OnReset;
        public bool targetIsSelf;
        public UnityEngine.GameObject targetGO;
        public bool tweenTargetIsTargetGO;
        public float delay;
        public float duration;
        public DG.Tweening.Ease easeType;
        public UnityEngine.AnimationCurve easeCurve;
        public DG.Tweening.LoopType loopType;
        public int loops;
        public string id;
        public bool isRelative;
        public bool isFrom;
        public bool isIndependentUpdate;
        public bool autoKill;
        public bool autoGenerate;
        public bool isActive;
        public bool isValid;
        public UnityEngine.Component target;
        public DG.Tweening.DOTweenAnimation.AnimationType animationType;
        public DG.Tweening.DOTweenAnimation.TargetType targetType;
        public DG.Tweening.DOTweenAnimation.TargetType forcedTargetType;
        public bool autoPlay;
        public bool useTargetAsV3;
        public float endValueFloat;
        public UnityEngine.Vector3 endValueV3;
        public UnityEngine.Vector2 endValueV2;
        public UnityEngine.Color endValueColor;
        public string endValueString;
        public UnityEngine.Rect endValueRect;
        public UnityEngine.Transform endValueTransform;
        public bool optionalBool0;
        public bool optionalBool1;
        public float optionalFloat0;
        public int optionalInt0;
        public DG.Tweening.RotateMode optionalRotationMode;
        public DG.Tweening.ScrambleMode optionalScrambleMode;
        public string optionalString;
        private bool _tweenAutoGenerationCalled;
        private int _playCount;
        
        // Methods
        public static void add_OnReset(System.Action<DG.Tweening.DOTweenAnimation> value)
        {
            label_4:
            if((System.Delegate.Combine(a:  mem[536884799], b:  value)) == null)
            {
                goto label_1;
            }
            
            if(X0 == true)
            {
                goto label_2;
            }
            
            goto label_3;
            label_1:
            label_2:
            if(mem[536884799] != mem[536884799])
            {
                goto label_4;
            }
            
            return;
            label_3:
        }
        public static void remove_OnReset(System.Action<DG.Tweening.DOTweenAnimation> value)
        {
            label_4:
            if((System.Delegate.Remove(source:  mem[536884799], value:  value)) == null)
            {
                goto label_1;
            }
            
            if(X0 == true)
            {
                goto label_2;
            }
            
            goto label_3;
            label_1:
            label_2:
            if(mem[536884799] != mem[536884799])
            {
                goto label_4;
            }
            
            return;
            label_3:
        }
        private static void Dispatch_OnReset(DG.Tweening.DOTweenAnimation anim)
        {
            var val_5;
            if(mem[536884799] == 0)
            {
                    return;
            }
            
            val_5 = ???;
            goto mem[536884799] + 24;
        }
        private void Awake()
        {
            if(this.isActive == false)
            {
                    return;
            }
            
            if(this.autoGenerate == false)
            {
                    return;
            }
            
            if(this.animationType == 1)
            {
                    if(this.useTargetAsV3 == true)
            {
                    return;
            }
            
            }
            
            this.CreateTween(regenerateIfExists:  false, andPlay:  this.autoPlay);
            this._tweenAutoGenerationCalled = true;
        }
        private void Start()
        {
            if(this._tweenAutoGenerationCalled == true)
            {
                    return;
            }
            
            if(this.isActive == false)
            {
                    return;
            }
            
            if(this.autoGenerate == false)
            {
                    return;
            }
            
            this.CreateTween(regenerateIfExists:  false, andPlay:  this.autoPlay);
            this._tweenAutoGenerationCalled = true;
        }
        private void Reset()
        {
            DG.Tweening.DOTweenAnimation.Dispatch_OnReset(anim:  this);
        }
        private void OnDestroy()
        {
            if((this != null) && (this.endValueString != null))
            {
                    DG.Tweening.TweenExtensions.Kill(t:  this, complete:  false);
            }
            
            mem[1152921504930430496] = 0;
        }
        public void RewindThenRecreateTween()
        {
            if((this != null) && (this.endValueString != null))
            {
                    DG.Tweening.TweenExtensions.Rewind(t:  this, includeDelay:  true);
            }
            
            this.CreateTween(regenerateIfExists:  true, andPlay:  false);
        }
        public void RewindThenRecreateTweenAndPlay()
        {
            if((this != null) && (this.endValueString != null))
            {
                    DG.Tweening.TweenExtensions.Rewind(t:  this, includeDelay:  true);
            }
            
            this.CreateTween(regenerateIfExists:  true, andPlay:  true);
        }
        public void RecreateTween()
        {
            this.CreateTween(regenerateIfExists:  true, andPlay:  false);
        }
        public void RecreateTweenAndPlay()
        {
            this.CreateTween(regenerateIfExists:  true, andPlay:  true);
        }
        public void CreateTween(bool regenerateIfExists = False, bool andPlay = True)
        {
            var val_129;
            var val_130;
            UnityEngine.GameObject val_131;
            string val_132;
            UnityEngine.Component val_133;
            var val_134;
            UnityEngine.Component val_135;
            UnityEngine.GameObject val_139;
            if(this.isValid == false)
            {
                goto label_1;
            }
            
            val_129 = this;
            if(27550208 != 0)
            {
                    if(121 != 0)
            {
                    if(regenerateIfExists == false)
            {
                    return;
            }
            
                DG.Tweening.TweenExtensions.Kill(t:  27550208, complete:  false);
            }
            
                mem[1152921504930430496] = 0;
            }
            
            val_130 = 27351912;
            if(this.targetIsSelf == false)
            {
                goto label_5;
            }
            
            val_131 = this.gameObject;
            goto label_6;
            label_1:
            if(regenerateIfExists == false)
            {
                    return;
            }
            
            UnityEngine.GameObject val_2 = this.gameObject;
            val_132 = 27550168;
            goto label_18;
            label_5:
            val_131 = this.targetGO;
            label_6:
            val_133 = this.target;
            if(val_133 != 0)
            {
                    if(val_131 != 0)
            {
                goto label_13;
            }
            
            }
            
            if((this.targetIsSelf != false) && (this.target == 0))
            {
                    UnityEngine.GameObject val_6 = this.gameObject;
                val_132 = 27550176;
            }
            else
            {
                    val_132 = 27550184;
            }
            
            label_18:
            UnityEngine.Debug.LogWarning(message:  System.String.Format(format:  val_132, arg0:  this.gameObject.name), context:  this.gameObject);
            return;
            label_13:
            if(this.forcedTargetType != 0)
            {
                    val_134 = this;
                this.targetType = this.forcedTargetType;
            }
            else
            {
                    val_134 = this;
                if(this.targetType == 0)
            {
                    this.targetType = DG.Tweening.DOTweenAnimation.TypeToDOTargetType(t:  this.target.GetType());
            }
            
            }
            
            if((this.animationType - 1) > 20)
            {
                goto label_162;
            }
            
            val_133 = 27356776;
            var val_14 = 6443408 + ((20182672 + ((this.animationType - 1)) << 1) << 2);
            goto (6443408 + (20182672 + ((this.animationType - 1)) << 1) << 2);
            label_162:
            if( == 0)
            {
                    return;
            }
            
            val_135 = this.isRelative;
            if(this.isFrom == false)
            {
                goto label_177;
            }
            
            if((val_90 + 300) < mem[536894907])
            {
                goto label_179;
            }
            
            var val_130 = val_90 + 200;
            val_130 = val_130 + ((mem[536894907]) << 3);
            if(((val_90 + 200 + (mem[536894907]) << 3) + -8) != 536894607)
            {
                goto label_179;
            }
            
            Unknown val_92 = DG.Tweening.TweenSettingsExtensions.From<System.Object>(t:  null, isRelative:  (val_135 == true) ? 1 : 0);
            goto label_180;
            label_177:
            label_180:
            val_130 = 27356864;
            if(this.targetIsSelf == false)
            {
                goto label_181;
            }
            
            label_183:
            val_139 = this.gameObject;
            goto label_182;
            label_181:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_183;
            }
            
            val_139 = this.targetGO;
            label_182:
            DG.Tweening.TweenCallback val_100 = 536894577;
            val_133 = val_100;
            val_100 = new DG.Tweening.TweenCallback(object:  this, method:  1610682557);
            Unknown val_101 = DG.Tweening.TweenSettingsExtensions.OnKill<System.Object>(t:  DG.Tweening.TweenSettingsExtensions.SetAutoKill<System.Object>(t:  DG.Tweening.TweenSettingsExtensions.SetLoops<System.Object>(t:  DG.Tweening.TweenSettingsExtensions.SetDelay<System.Object>(t:  DG.Tweening.TweenSettingsExtensions.SetTarget<System.Object>(t:  DG.Tweening.TweenSettingsExtensions.SetRelative<System.Object>(t:  null, isRelative:  (val_135 == true) ? 1 : 0), target:  val_139), delay:  this.delay), loops:  this.loops, loopType:  this.loopType), autoKillOnCompletion:  this.autoKill), action:  val_133);
            if(27437072 != 0)
            {
                    Unknown val_102 = DG.Tweening.TweenSettingsExtensions.SetSpeedBased<System.Object>(t:  null);
            }
            
            if(this.easeType == 37)
            {
                    Unknown val_103 = DG.Tweening.TweenSettingsExtensions.SetEase<System.Object>(t:  val_102, animCurve:  this.easeCurve);
            }
            else
            {
                    Unknown val_104 = DG.Tweening.TweenSettingsExtensions.SetEase<System.Object>(t:  val_102, ease:  this.easeType);
            }
            
            Unknown val_107 = DG.Tweening.TweenSettingsExtensions.SetUpdate<System.Object>(t:  DG.Tweening.TweenSettingsExtensions.SetId<System.Object>(t:  System.String.IsNullOrEmpty(value:  this.id), stringId:  this.id), isIndependentUpdate:  this.isIndependentUpdate);
            if(27460920 == 0)
            {
                goto label_189;
            }
            
            if(null == null)
            {
                goto label_192;
            }
            
            DG.Tweening.TweenCallback val_108 = 536894577;
            val_134 = 27460712;
            val_108 = new DG.Tweening.TweenCallback(object:  1152921504879689728, method:  1610669613);
            Unknown val_109 = DG.Tweening.TweenSettingsExtensions.OnStart<System.Object>(t:  null, action:  val_108);
            goto label_192;
            label_189:
            mem[1152921504930430440] = 0;
            label_192:
            if(27460920 == 0)
            {
                goto label_193;
            }
            
            if(null == null)
            {
                goto label_196;
            }
            
            DG.Tweening.TweenCallback val_110 = 536894577;
            val_134 = 27460680;
            val_110 = new DG.Tweening.TweenCallback(object:  1152921504879689728, method:  1610669613);
            Unknown val_111 = DG.Tweening.TweenSettingsExtensions.OnPlay<System.Object>(t:  null, action:  val_110);
            goto label_196;
            label_193:
            mem[1152921504930430448] = 0;
            label_196:
            if(27460920 == 0)
            {
                goto label_197;
            }
            
            if(null == null)
            {
                goto label_200;
            }
            
            DG.Tweening.TweenCallback val_112 = 536894577;
            val_134 = 27460800;
            val_112 = new DG.Tweening.TweenCallback(object:  1152921504879689728, method:  1610669613);
            Unknown val_113 = DG.Tweening.TweenSettingsExtensions.OnUpdate<System.Object>(t:  null, action:  val_112);
            goto label_200;
            label_197:
            mem[1152921504930430456] = 0;
            label_200:
            if(27460920 == 0)
            {
                goto label_201;
            }
            
            if(null == null)
            {
                goto label_204;
            }
            
            DG.Tweening.TweenCallback val_114 = 536894577;
            val_134 = 27460744;
            val_114 = new DG.Tweening.TweenCallback(object:  1152921504879689728, method:  1610669613);
            Unknown val_115 = DG.Tweening.TweenSettingsExtensions.OnStepComplete<System.Object>(t:  null, action:  val_114);
            goto label_204;
            label_201:
            mem[1152921504930430464] = 0;
            label_204:
            if(27460920 == 0)
            {
                goto label_205;
            }
            
            if(null == null)
            {
                goto label_208;
            }
            
            DG.Tweening.TweenCallback val_116 = 536894577;
            val_134 = 27460648;
            val_116 = new DG.Tweening.TweenCallback(object:  1152921504879689728, method:  1610669613);
            Unknown val_117 = DG.Tweening.TweenSettingsExtensions.OnComplete<System.Object>(t:  null, action:  val_116);
            goto label_208;
            label_205:
            mem[1152921504930430472] = 0;
            label_208:
            if(27460920 == 0)
            {
                goto label_209;
            }
            
            if(null == null)
            {
                goto label_212;
            }
            
            DG.Tweening.TweenCallback val_118 = 536894577;
            val_130 = 27460696;
            val_118 = new DG.Tweening.TweenCallback(object:  1152921504879689728, method:  1610669613);
            Unknown val_119 = DG.Tweening.TweenSettingsExtensions.OnRewind<System.Object>(t:  null, action:  val_118);
            goto label_212;
            label_209:
            mem[1152921504930430488] = 0;
            label_212:
            if(andPlay != false)
            {
                    Unknown val_120 = DG.Tweening.TweenExtensions.Play<System.Object>(t:  null);
            }
            else
            {
                    Unknown val_121 = DG.Tweening.TweenExtensions.Pause<System.Object>(t:  null);
            }
            
            if(27460600 == 0)
            {
                    return;
            }
            
            if(val_121 == 0)
            {
                    return;
            }
            
            val_121.Invoke();
            return;
            label_179:
        }
        public System.Collections.Generic.List<DG.Tweening.Tween> GetTweens()
        {
            System.Collections.Generic.List<System.Object> val_1 = 536877625;
            val_1 = new System.Collections.Generic.List<System.Object>();
            if(val_2.Length < 1)
            {
                    return (System.Collections.Generic.List<DG.Tweening.Tween>)val_1;
            }
            
            var val_7 = 0;
            label_11:
            if(val_7 >= val_2.Length)
            {
                goto label_4;
            }
            
            Unknown val_5 = this.GetComponents<System.Object>()[val_7];
            if(((val_2[0x0][0] + 96) != 0) && ((val_2[0x0][0] + 96 + 232) != 0))
            {
                    var val_6 = mem[536877653];
                val_6 = val_6 + 1;
                mem[536877653] = val_6;
                if(mem[536877649] < (mem[536877641] + 24))
            {
                    var val_4 = mem[536877641] + ((mem[536877649]) << 3);
                mem[536877649] = mem[536877649] + 1;
                mem2[0] = val_2[0x0][0] + 96;
            }
            
            }
            
            val_7 = val_7 + 1;
            if(val_7 < val_2.Length)
            {
                goto label_11;
            }
            
            return (System.Collections.Generic.List<DG.Tweening.Tween>)val_1;
            label_4:
        }
        public void SetAnimationTarget(UnityEngine.Component tweenTarget, bool useTweenTargetGameObjectForGroupOperations = True)
        {
            if((DG.Tweening.DOTweenAnimation.TypeToDOTargetType(t:  this.target.GetType())) == this.targetType)
            {
                    this.target = tweenTarget;
                this.targetGO = this.target.gameObject;
                mem[1152921504930430520] = useTweenTargetGameObjectForGroupOperations;
                return;
            }
            
            UnityEngine.Debug.LogError(message:  -1610608301);
        }
        public override void DOPlay()
        {
            UnityEngine.GameObject val_3;
            if(this.targetIsSelf == false)
            {
                goto label_1;
            }
            
            label_3:
            val_3 = this.gameObject;
            goto label_2;
            label_1:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_3;
            }
            
            val_3 = this.targetGO;
            label_2:
            int val_2 = DG.Tweening.DOTween.Play(targetOrId:  val_3);
        }
        public override void DOPlayBackwards()
        {
            UnityEngine.GameObject val_3;
            if(this.targetIsSelf == false)
            {
                goto label_1;
            }
            
            label_3:
            val_3 = this.gameObject;
            goto label_2;
            label_1:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_3;
            }
            
            val_3 = this.targetGO;
            label_2:
            int val_2 = DG.Tweening.DOTween.PlayBackwards(targetOrId:  val_3);
        }
        public override void DOPlayForward()
        {
            UnityEngine.GameObject val_3;
            if(this.targetIsSelf == false)
            {
                goto label_1;
            }
            
            label_3:
            val_3 = this.gameObject;
            goto label_2;
            label_1:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_3;
            }
            
            val_3 = this.targetGO;
            label_2:
            int val_2 = DG.Tweening.DOTween.PlayForward(targetOrId:  val_3);
        }
        public override void DOPause()
        {
            UnityEngine.GameObject val_3;
            if(this.targetIsSelf == false)
            {
                goto label_1;
            }
            
            label_3:
            val_3 = this.gameObject;
            goto label_2;
            label_1:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_3;
            }
            
            val_3 = this.targetGO;
            label_2:
            int val_2 = DG.Tweening.DOTween.Pause(targetOrId:  val_3);
        }
        public override void DOTogglePause()
        {
            UnityEngine.GameObject val_3;
            if(this.targetIsSelf == false)
            {
                goto label_1;
            }
            
            label_3:
            val_3 = this.gameObject;
            goto label_2;
            label_1:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_3;
            }
            
            val_3 = this.targetGO;
            label_2:
            int val_2 = DG.Tweening.DOTween.TogglePause(targetOrId:  val_3);
        }
        public override void DORewind()
        {
            var val_5;
            this._playCount = 0;
            val_5 = val_2.Length - 1;
            if(<0)
            {
                    return;
            }
            
            if(val_5 >= val_2.Length)
            {
                    return;
            }
            
            do
            {
                if((DG.Tweening.TweenExtensions.IsInitialized(t:  Unknown.__il2cppRuntimeField_generic_class)) != false)
            {
                    if(val_5 >= val_2.Length)
            {
                    return;
            }
            
                DG.Tweening.TweenExtensions.Rewind(t:  Unknown.__il2cppRuntimeField_generic_class, includeDelay:  true);
            }
            
                val_5 = val_5 - 1;
                if(val_5 < 0)
            {
                    return;
            }
            
                this.gameObject.GetComponents<System.Object>()[val_5][32] = (this.gameObject.GetComponents<System.Object>()[val_5][32]) - 8;
            }
            while(val_5 < val_2.Length);
        
        }
        public override void DORestart()
        {
            goto typeof(DG.Tweening.DOTweenAnimation).__il2cppRuntimeField_1E8;
        }
        public override void DORestart(bool fromHere)
        {
            UnityEngine.GameObject val_3;
            this._playCount = 0;
            if(1 == 0)
            {
                goto label_1;
            }
            
            if((fromHere != false) && (this.isRelative != false))
            {
                    this.ReEvaluateRelativeTween();
            }
            
            if(this.targetIsSelf == false)
            {
                goto label_4;
            }
            
            label_8:
            val_3 = this.gameObject;
            goto label_5;
            label_1:
            if(mem[536885141] < 2)
            {
                    return;
            }
            
            DG.Tweening.Core.Debugger.LogNullTween(t:  27345264);
            return;
            label_4:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_8;
            }
            
            val_3 = this.targetGO;
            label_5:
            int val_2 = DG.Tweening.DOTween.Restart(targetOrId:  val_3, includeDelay:  true, changeDelayTo:  -1f);
        }
        public override void DOComplete()
        {
            UnityEngine.GameObject val_3;
            if(this.targetIsSelf == false)
            {
                goto label_1;
            }
            
            label_3:
            val_3 = this.gameObject;
            goto label_2;
            label_1:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_3;
            }
            
            val_3 = this.targetGO;
            label_2:
            int val_2 = DG.Tweening.DOTween.Complete(targetOrId:  val_3, withCallbacks:  false);
        }
        public override void DOKill()
        {
            UnityEngine.GameObject val_3;
            if(this.targetIsSelf == false)
            {
                goto label_1;
            }
            
            label_3:
            val_3 = this.gameObject;
            goto label_2;
            label_1:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_3;
            }
            
            val_3 = this.targetGO;
            label_2:
            int val_2 = DG.Tweening.DOTween.Kill(targetOrId:  val_3, complete:  false);
            mem[1152921504930430496] = 0;
        }
        public void DOPlayById(string id)
        {
            UnityEngine.GameObject val_3;
            if(this.targetIsSelf == false)
            {
                goto label_1;
            }
            
            label_3:
            val_3 = this.gameObject;
            goto label_2;
            label_1:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_3;
            }
            
            val_3 = this.targetGO;
            label_2:
            int val_2 = DG.Tweening.DOTween.Play(target:  val_3, id:  id);
        }
        public void DOPlayAllById(string id)
        {
            int val_1 = DG.Tweening.DOTween.Play(targetOrId:  id);
        }
        public void DOPauseAllById(string id)
        {
            int val_1 = DG.Tweening.DOTween.Pause(targetOrId:  id);
        }
        public void DOPlayBackwardsById(string id)
        {
            UnityEngine.GameObject val_3;
            if(this.targetIsSelf == false)
            {
                goto label_1;
            }
            
            label_3:
            val_3 = this.gameObject;
            goto label_2;
            label_1:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_3;
            }
            
            val_3 = this.targetGO;
            label_2:
            int val_2 = DG.Tweening.DOTween.PlayBackwards(target:  val_3, id:  id);
        }
        public void DOPlayBackwardsAllById(string id)
        {
            int val_1 = DG.Tweening.DOTween.PlayBackwards(targetOrId:  id);
        }
        public void DOPlayForwardById(string id)
        {
            UnityEngine.GameObject val_3;
            if(this.targetIsSelf == false)
            {
                goto label_1;
            }
            
            label_3:
            val_3 = this.gameObject;
            goto label_2;
            label_1:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_3;
            }
            
            val_3 = this.targetGO;
            label_2:
            int val_2 = DG.Tweening.DOTween.PlayForward(target:  val_3, id:  id);
        }
        public void DOPlayForwardAllById(string id)
        {
            int val_1 = DG.Tweening.DOTween.PlayForward(targetOrId:  id);
        }
        public void DOPlayNext()
        {
            if(this._playCount >= (val_1.Length - 1))
            {
                    return;
            }
            
            do
            {
                int val_8 = (long)this._playCount;
                val_8 = val_8 + 1;
                this._playCount = val_8;
                if(val_8 >= val_1.Length)
            {
                    throw new NullReferenceException();
            }
            
                if((((this.GetComponents<System.Object>()[val_8]) != 0) && ((val_1[((long)(int)(this._playCount) + 1)][0] + 96) != 0)) && ((val_1[((long)(int)(this._playCount) + 1)][0] + 96 + 232) != 0))
            {
                    if((DG.Tweening.TweenExtensions.IsPlaying(t:  val_1[((long)(int)(this._playCount) + 1)][0] + 96)) != true)
            {
                    if((DG.Tweening.TweenExtensions.IsComplete(t:  val_1[((long)(int)(this._playCount) + 1)][0] + 96)) == false)
            {
                goto label_10;
            }
            
            }
            
            }
            
            }
            while(this._playCount < (val_1.Length - 1));
            
            return;
            label_10:
            Unknown val_7 = DG.Tweening.TweenExtensions.Play<System.Object>(t:  val_1[((long)(int)(this._playCount) + 1)][0] + 96);
        }
        public void DORewindAndPlayNext()
        {
            UnityEngine.GameObject val_3;
            this._playCount = 0;
            if(this.targetIsSelf == false)
            {
                goto label_1;
            }
            
            label_3:
            val_3 = this.gameObject;
            goto label_2;
            label_1:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_3;
            }
            
            val_3 = this.targetGO;
            label_2:
            int val_2 = DG.Tweening.DOTween.Rewind(targetOrId:  val_3, includeDelay:  true);
            this.DOPlayNext();
        }
        public void DORewindAllById(string id)
        {
            this._playCount = 0;
            int val_1 = DG.Tweening.DOTween.Rewind(targetOrId:  id, includeDelay:  true);
        }
        public void DORestartById(string id)
        {
            UnityEngine.GameObject val_3;
            this._playCount = 0;
            if(this.targetIsSelf == false)
            {
                goto label_1;
            }
            
            label_3:
            val_3 = this.gameObject;
            goto label_2;
            label_1:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_3;
            }
            
            val_3 = this.targetGO;
            label_2:
            int val_2 = DG.Tweening.DOTween.Restart(target:  val_3, id:  id, includeDelay:  true, changeDelayTo:  -1f);
        }
        public void DORestartAllById(string id)
        {
            this._playCount = 0;
            int val_1 = DG.Tweening.DOTween.Restart(targetOrId:  id, includeDelay:  true, changeDelayTo:  -1f);
        }
        public void DOKillById(string id)
        {
            UnityEngine.GameObject val_3;
            if(this.targetIsSelf == false)
            {
                goto label_1;
            }
            
            label_3:
            val_3 = this.gameObject;
            goto label_2;
            label_1:
            if(this.tweenTargetIsTargetGO == false)
            {
                goto label_3;
            }
            
            val_3 = this.targetGO;
            label_2:
            int val_2 = DG.Tweening.DOTween.Kill(target:  val_3, id:  id, complete:  false);
        }
        public void DOKillAllById(string id)
        {
            int val_1 = DG.Tweening.DOTween.Kill(targetOrId:  id, complete:  false);
        }
        public static DG.Tweening.DOTweenAnimation.TargetType TypeToDOTargetType(System.Type t)
        {
            System.Type val_10 = t;
            string val_10 = -1610611497;
            int val_1 = t.LastIndexOf(value:  val_10);
            if(val_1 != 1)
            {
                    val_10 = val_1 + 1;
                val_10 = val_10.Substring(startIndex:  val_10);
            }
            
            if((val_10.IndexOf(value:  -1610604155)) != 1)
            {
                    string val_5 = ((System.String.op_Inequality(a:  val_10, b:  -1610603597)) != true) ? -1610604155 : (val_10);
            }
            
            if((System.String.op_Equality(a:  val_5, b:  -1610604287)) != true)
            {
                    if((System.String.op_Equality(a:  val_5, b:  -1610607143)) == false)
            {
                goto label_7;
            }
            
            }
            
            val_10 = -1610606697;
            label_7:
            object val_9 = System.Enum.Parse(enumType:  System.Type.GetTypeFromHandle(handle:  new System.RuntimeTypeHandle() {value = 1073768897}), value:  val_10);
            return (DG.Tweening.DOTweenAnimation.DG.Tweening.DOTweenAnimation.TargetType)null;
        }
        public DG.Tweening.Tween CreateEditorPreview()
        {
            var val_2 = 0;
            if(UnityEngine.Application.isPlaying == true)
            {
                    return (DG.Tweening.Tween)this;
            }
            
            this.CreateTween(regenerateIfExists:  true, andPlay:  this.autoPlay);
            return (DG.Tweening.Tween)this;
        }
        private UnityEngine.GameObject GetTweenGO()
        {
            if(this.targetIsSelf == false)
            {
                    return (UnityEngine.GameObject)this.targetGO;
            }
            
            return this.gameObject;
        }
        private UnityEngine.GameObject GetTweenTarget()
        {
            if(this.targetIsSelf != false)
            {
                    return this.gameObject;
            }
            
            if(this.tweenTargetIsTargetGO == false)
            {
                    return this.gameObject;
            }
            
            return (UnityEngine.GameObject)this.targetGO;
        }
        private void ReEvaluateRelativeTween()
        {
            var val_13;
            UnityEngine.GameObject val_14;
            val_13 = 27351912;
            if(this.targetIsSelf != false)
            {
                    val_14 = this.gameObject;
            }
            else
            {
                    val_14 = this.targetGO;
            }
            
            if(val_14 == 0)
            {
                    UnityEngine.Debug.LogWarning(message:  System.String.Format(format:  -1610594759, arg0:  this.gameObject.name), context:  this.gameObject);
                return;
            }
            
            if(this.animationType != 2)
            {
                    if(this.animationType != 1)
            {
                    return;
            }
            
                UnityEngine.Vector3 val_8 = val_14.transform.position;
            }
            else
            {
                    UnityEngine.Vector3 val_10 = val_14.transform.localPosition;
            }
            
            val_10.x = val_10.x + this.endValueV3;
            float val_11 = val_10.z + S4;
            if(mem[536890505] >= mem[536894907])
            {
                    var val_13 = mem[536890405];
                val_13 = val_13 + ((mem[536894907]) << 3);
                if((((mem[536890405] + (mem[536894907]) << 3) + -8) == 536894607) && (mem[536890505] >= mem[536894907]))
            {
                    var val_12 = mem[536890405] + ((mem[536894907]) << 3);
                if(((mem[536890405] + (mem[536894907]) << 3) + -8) == 536894607)
            {
                    return;
            }
            
            }
            
            }
        
        }
        public DOTweenAnimation()
        {
            this.targetIsSelf = true;
            this.tweenTargetIsTargetGO = true;
            this.duration = 1f;
            this.easeType = 6;
            UnityEngine.Keyframe val_1 = new UnityEngine.Keyframe(time:  0f, value:  0f);
            if(mem[536881321] == 0)
            {
                    throw new NullReferenceException();
            }
            
            mem[536881341] = val_1.m_OutTangent;
            mem[536881329] = val_1.m_Time;
            UnityEngine.Keyframe val_2 = new UnityEngine.Keyframe(time:  1f, value:  1f);
            if(mem[536881321] <= 1)
            {
                    throw new NullReferenceException();
            }
            
            mem[536881369] = val_2.m_OutTangent;
            mem[536881357] = val_2.m_Time;
            UnityEngine.AnimationCurve val_3 = 536882301;
            val_3 = new UnityEngine.AnimationCurve(keys:  536881297);
            this.easeCurve = val_3;
            this.loops = 1;
            this.id = -1610612735;
            this.isActive = true;
            this.autoPlay = true;
            this.autoKill = true;
            this.autoGenerate = true;
            this.endValueColor = 1;
            this.endValueString = -1610612735;
            UnityEngine.Rect val_4 = new UnityEngine.Rect(x:  0f, y:  0f, width:  0f, height:  0f);
            this.endValueRect = val_4.m_XMin;
            this._playCount = 0;
        }
        private void <CreateTween>b__53_0()
        {
            mem[1152921504930430496] = 0;
        }
    
    }

}
